package com.javasm.mmbfile.employeeManagement.controller;
import com.javasm.common.entity.Employee;
import com.javasm.mmbfile.employeeManagement.dao.EmployeeDao;
import com.javasm.mmbfile.employeeManagement.service.EmployeeManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/employeeManagement")
public class EmployeeManagementController {

      @Autowired
      EmployeeManagementService employeeManagementService;

      @Autowired
      EmployeeDao employeeDao;

       @RequestMapping("add")
       public String add(Employee employee){

           return null;
       }
       @RequestMapping("list")
       public Object list(){
           List<Employee> employees = employeeDao.selectList(null);
           System.out.println(employees);
           return employees;
       }
}
